import { parseTime } from '@/utils'
export function isOutDate(val) {
  const now = new Date()
  const y = now.getFullYear()
  const y_val = parseTime(val, '{y}')
  if (y < y_val) return 1
  if (y > y_val) return 0
  const m = now.getMonth() + 1
  const m_val = parseTime(val, '{m}')
  if (m < m_val) return 1
  if (m > m_val) return 0
  const d = now.getDate()
  const d_val = parseTime(val, '{d}')
  if (d < d_val) return 1
  if (d > d_val) return 0
  return 1
}
